package com.firegod.group.service;

import com.firegod.group.form.TopicForm;
import com.firegod.servicebase.entity.Topic;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public interface TopicService {

    String sendTopic(String groupId, String title, String content);

    void deleteTopic(String topicId);

    void updateTopic(String topicId, String title, String content);

    boolean likeTopic(String topicId);

    boolean unLikeTopic(String topicId);

    void featureTopic(String topicId, boolean isFeature);

    void topTopic(String topicId, boolean isTop);

    List<TopicForm> getTopicList(String groupId);

    List<Topic> getTopTopics(String groupId);

    HashMap<String, Object> getTopicInfo(String topicId);
}
